package com.hongtech.modules.system.vo;

import com.hongtech.modules.system.dto.SysMenuDTO;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 菜单树+是否有权限表示
 */
public class TreeMenuAccessVO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 菜单
	 */
	private SysMenuDTO sysMenuDTO;
	/**
	 * 是否允许访问
	 */
	private boolean allowAccess = false;
	/**
	 * 子菜单
	 */
	private List<TreeMenuAccessVO> children = new ArrayList<>();

	public SysMenuDTO getSysMenu() {
		return sysMenuDTO;
	}

	public void setSysMenu(SysMenuDTO sysMenuDTO) {
		this.sysMenuDTO = sysMenuDTO;
	}

	public boolean isAllowAccess() {
		return allowAccess;
	}

	public void setAllowAccess(boolean allowAccess) {
		this.allowAccess = allowAccess;
	}

	public List<TreeMenuAccessVO> getChildren() {
		return children;
	}

	public void setChildren(List<TreeMenuAccessVO> children) {
		this.children = children;
	}

}
